home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 1999-10-13 | 1.7 KB | 82 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="3"
- "UIPATH"="Hardware\Video Cards\Riva TNT"
- "NAME"="OpenGL Settings"
- "VERSION"="1.10"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Enable Buffer Flipping"
- "TEXT 2"="Enable Vsync Blank waitstate"
- "TEXT 3"="Force Multi Texture"
- "DESCRIPTION 1"="Some options for your Riva TNT and Riva TNT 2 3D card."
- "DESCRIPTION 2"="NOTE: This plug-in is only for use on Windows 95/98."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
- "COMMENT 2"="Thanks to CptSiskoX!"
-
-
- sPC="HKLM\SOFTWARE\NVIDIA Corporation\Riva TNT\"
- sV1="HKLM\Software\NVIDIA Corporation\Riva TNT\OpenGL\EnableBufferFlipping" 'DW
- sV2="HKLM\Software\NVIDIA Corporation\RIVA TNT\OpenGL\EnableVBlankWait" 'DW
- sV3="HKLM\Software\NVIDIA Corporation\RIVA TNT\OpenGL\ForceMultiTexture" 'DW
- Sub Plugin_Initialize
- If (GetWinVer=1 or GetWinVer=3) and RegPathExists(sPC) then
-
- i=RegReadValue(sV1)
- if i=1 then SetUiElement 1,true
-
- i=RegReadValue(sV2)
- if i=1 then SetUiElement 2,true
-
- i=RegReadValue(sV3)
- if i=1 then SetUiElement 3,true
-
- else
- Call Disable()
- end if
- End Sub
-
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
-
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- i=1
- else
- i=0
- end if
- Call RegWriteValue(sV1,i,2)
-
- b=GetUIElement(2)
- if b=true then
- i=1
- else
- i=0
- end if
- Call RegWriteValue(sV2,i,2)
-
- b=GetUIElement(3)
- if b=true then
- i=1
- else
- i=0
- end if
- Call RegWriteValue(sV3,i,2)
-
-
-
- Call Restart()
- End Sub
-
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-